package org.dromara.work.domain.bo;

import org.dromara.work.domain.MhCategory;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 地名门户栏目业务对象 dm_mh_category
 *
 * @author Chen
 * @date 2025-02-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = MhCategory.class, reverseConvertGenerate = false)
public class MhCategorySaveBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 栏目名称
     */
    @NotBlank(message = "栏目名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 父id
     */
    @NotNull(message = "父id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long parentId;

    /**
     * 排序号
     */
    @NotNull(message = "排序号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orderNum;

    /**
     * 是否显示
     */
    @NotNull(message = "是否显示不能为空", groups = { AddGroup.class, EditGroup.class })
    private Boolean show;

    /**
     * 关键字
     */
    private String keyword;

    /**
     * 是否显示
     */
    @NotNull(message = "是否外链不能为空", groups = { AddGroup.class, EditGroup.class })
    private Boolean link;

    /**
     * 关键字
     */
    private String linkUrl;

}
